package com.dody.agile.payment.classification;

import com.dody.agile.payment.model.Paycheck;

/**
 * @author ShiXin
 * @date 2019/4/9 20:55
 * @description ExamStack
 */
public class SalariedClassification implements PaymentClassification {

    private double salary;

    public SalariedClassification(double salary) {
        super();
        this.salary = salary;
    }

    public double getSalary() {
        return salary;
    }

    @Override
    public double calculatePay(Paycheck paycheck) {
        return this.salary;
    }
}
